<%--
  Created by IntelliJ IDEA.
  User: ChenYu
  Date: 2017-06-13
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<p class="logo align_center mb50"><a href="/l"><img src="${ctx}/static/web/images/aa.svg"/></a></p>

<div class="nav align_center">
    <a href="${ctx}/shoes">精品鞋款</a>
    <a href="${ctx}/best">高级定制</a>
    <a href="${ctx}/story">品牌故事</a>
    <a href="${ctx}/care">护理保养</a>
    <a href="${ctx}/contact">联系我们</a>
    <%--<a href="javascript:;">精彩活动</a>
    <a href="javascript:;">MEDIA</a>--%>
</div>
<script>
    $(function () {
        var path = window.location.pathname;
        $('.nav a').each(function (index) {
            var href = $(this).attr("href");
            if (href.indexOf(path) == 0) {
                $(this).addClass("on");
            } else {
                $(this).removeClass("on");
            }
        })
    });
</script>
